/*
 * @Author: your name
 * @Date: 2021-08-02 12:08:10
 * @LastEditTime: 2021-08-05 10:50:33
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \vue-admin-template\src\utils\auth.js
 */
import Cookies from 'js-cookie'

// 本地存储的名字
const TokenKey = 'hrsaas_ihrm_token'

// 获取
export function getToken() {
  return Cookies.get(TokenKey)
}
// 新增
export function setToken(token) {
  return Cookies.set(TokenKey, token)
}
// 删除
export function removeToken() {
  return Cookies.remove(TokenKey)
}
